package com.nbsaas.boot.project.rest.convert;

import com.nbsaas.boot.project.data.entity.DataModelField;
import com.nbsaas.boot.project.api.domain.response.DataModelFieldResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 实体对象转化成响应对象
*/

public class DataModelFieldResponseConvert  implements Converter<DataModelFieldResponse,DataModelField> {

    @Override
    public DataModelFieldResponse convert(DataModelField source) {
        DataModelFieldResponse  result = new  DataModelFieldResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

